<?php

$db_prefix = elgg_get_config('dbprefix');
//$body = elgg_list_entities_from_metadata(array(
//    'type' => 'object',
//    'subtype' => 'question',
//    'value_id'=>'Kho',
//   // 'joins' => array("JOIN {$db_prefix} metadata m ON e.guid = m.entity_guid"),
//    //'wheres' => array("typeQuestion LIKE \"%Kho%\""),
//));

$body = elgg_list_entities(array(
    'type' => 'object',
    'subtype' => 'question',
    'entity_guid'=>'105',
   // 'joins' => array("JOIN {$db_prefix} metadata m ON e.guid = m.entity_guid"),
    //'wheres' => array("typeQuestion LIKE \"%Kho%\""),
));

$body = elgg_view_layout('one_column', array('content' => $body));
 
    // set the title
    // we can also use elgg_echo() with a unique string descriptor to enable internationalisation of this title
    $title = "Xem Danh Sách Câu Hỏi";
 
    // draw the page
    echo elgg_view_page($title, $body);
?>
